package nc.ui.cad.degdev;

import nc.ui.cad.btnaction.ButtonCreaterFactory;
import nc.ui.cad.btnaction.DegdevBtnAction;
import nc.ui.cad.btnaction.HandAdjustAction;
import nc.ui.cad.privatebtn.IFTButton;
import nc.ui.capub.baseui.AbstractBaseUI;
import nc.ui.capub.baseui.BaseEventHandle;
import nc.ui.trade.bill.AbstractManageController;
import nc.ui.trade.bsdelegate.BusinessDelegator;

public class DegdevUI extends AbstractBaseUI {

	@Override
	protected BusinessDelegator createBusinessDelegator() {
		return new BusinessDelegator();
	}

	@Override
	public AbstractManageController createController() {
		return new DegdevController();
	}

	@Override
	public BaseEventHandle createEventHandler() {
		return new DegdevEventHandler(this,this.getUIControl());
	}

	@Override
	protected void initPrivateButton() {
		super.initPrivateButton();
		addPrivateButton(ButtonCreaterFactory.getButtonVO(IFTButton.JSJZ));
		addButtonAction(IFTButton.JSJZ,new DegdevBtnAction());
		addPrivateButton(ButtonCreaterFactory.getButtonVO(IFTButton.HAND_ADJUST));
		addButtonAction(IFTButton.HAND_ADJUST, new HandAdjustAction());
	}

	@Override
	public Object getUserObject() {
		// TODO Auto-generated method stub
		return null;
	}

}
